package com.stu.annotation;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Testuser {

	public static void main(String[] args) {
		//注解配置形式测试
		ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext("bean1.xml");
		UserService userService=(UserService) applicationContext.getBean("userService");
		userService.updateuser();
		userService.deleteuser();
	}

}
